home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-04-19 | 2.0 KB | 77 lines |
- # -*- Mode: Text -*-
-
- # Look over config.X before building.
- #
- # You may want to edit BINDIR, LIBDIR, DEFHASH, DEFDICT, MAN1DIR, MAN4DIR
- # MAN1EXT, MAN4EXT, and TERMLIB below;
- # the Makefile will update all other files to match.
- #
- # On USG systems, add -DUSG to CFLAGS. On BSD, remove it.
- #
- # The ifdef NO8BIT may be used if 8 bit extended text characters
- # cause problems, or you simply don't wish to allow the feature.
- #
- # the argument syntax for buildhash to make alternate dictionary files
- # is simply:
- #
- # buildhash <infile> <outfile>
-
- CC = cgcc
- CFLAGS = -O
- # BINDIR, LIBDIR, DEFHASH, DEFDICT, MAN1DIR, MAN4DIR, MAN1EXT, MAN4EXT,
- # TERMLIB
- BINDIR =
- LIBDIR = /lib
- DEFHASH = ispell.hsh
- DEFDICT = dict.2
- ##DEFDICT = dict.2### dict.195 munched with /usr/dict/words
- MAN1DIR = /usr/man/manl
- MAN4DIR = /usr/man/manl
- MAN1EXT = .1l
- MAN4EXT = .4l
- # TERMLIB = -lcurses
- TERMLIB = -ltermcap
-
- SHELL = /bin/sh
-
- all: buildhash.ttp ispell.ttp # icombine munchlist isexpand $(DEFHASH)
-
- ispell.hsh: buildhash $(DEFDICT)
- buildhash $(DEFDICT) $(DEFHASH)
-
- buildhash.ttp: buildhash.o hash.o
- $(CC) $(CFLAGS) -o buildhash.ttp buildhash.o hash.o
-
- fixdict: fixdict.X Makefile
- sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
- <fixdict.X >fixdict
- chmod +x fixdict
-
- icombine: icombine.c config.h ispell.h
- $(CC) $(CFLAGS) -o icombine icombine.c
-
- munchlist: munchlist.X Makefile
- sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
- <munchlist.X >munchlist
- chmod +x munchlist
-
- isexpand: isexpand.X Makefile
- sed -e 's@!!LIBDIR!!@$(LIBDIR)@' isexpand.X >isexpand
- chmod +x isexpand
-
- OBJS=ispell.o term.o good.o lookup.o hash.o tree.o xgets.o
-
- ispell.ttp: $(OBJS)
- $(CC) $(CFLAGS) -o ispell.ttp $(OBJS) $(TERMLIB)
-
- $(OBJS) buildhash.o: config.h ispell.h
- ispell.o: version.h
-
- config.h: config.X Makefile
- sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
- -e 's@!!DEFHASH!!@$(DEFHASH)@' <config.X >config.h
-
- clean:
- rm -f *.o buildhash ispell core a.out mon.out hash.out \
- *.stat *.cnt fixdict fixdict.sh icombine munchlist config.h
-